package cn.wolfcode.service;

import cn.wolfcode.domain.Appointment;
import cn.wolfcode.qo.AppointmentQueryObject;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAppointmentService {

    void save(Appointment appointment);

    void delete(Long id);

    void update(Appointment appointment);

    Appointment get(Long id);

    List<Appointment> listAll();

    // 分页查询方法
    PageInfo<Appointment> query(AppointmentQueryObject qo);

    /**
     * 状态更新
     * @param id
     * @param status
     */
    void updateStatus(Long id, int status);
}